Optimal. Leaf size=54 \[ -\frac {3}{2} a b \sqrt {1-x^2}-\frac {1}{2} b (a+b x) \sqrt {1-x^2}+\frac {1}{2} \left (2 a^2+b^2\right ) \sin ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {757, 655, 222}
\begin {gather*} \frac {1}{2} \left (2 a^2+b^2\right ) \text {ArcSin}(x)-\frac {3}{2} a b \sqrt {1-x^2}-\frac {1}{2} b \sqrt {1-x^2} (a+b x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 655
Rule 757
Rubi steps
\begin {align*} \int \frac {(a+b x)^2}{\sqrt {1-x^2}} \, dx &=-\frac {1}{2} b (a+b x) \sqrt {1-x^2}-\frac {1}{2} \int \frac {-2 a^2-b^2-3 a b x}{\sqrt {1-x^2}} \, dx\\ &=-\frac {3}{2} a b \sqrt {1-x^2}-\frac {1}{2} b (a+b x) \sqrt {1-x^2}-\frac {1}{2} \left (-2 a^2-b^2\right ) \int \frac {1}{\sqrt {1-x^2}} \, dx\\ &=-\frac {3}{2} a b \sqrt {1-x^2}-\frac {1}{2} b (a+b x) \sqrt {1-x^2}+\frac {1}{2} \left (2 a^2+b^2\right ) \sin ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 52, normalized size = 0.96 \begin {gather*} -\frac {1}{2} b (4 a+b x) \sqrt {1-x^2}+\left (2 a^2+b^2\right ) \tan ^{-1}\left (\frac {x}{-1+\sqrt {1-x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.45, size = 42, normalized size = 0.78
method | result | size |
risch | \(\frac {b \left (b x +4 a \right ) \left (x^{2}-1\right )}{2 \sqrt {-x^{2}+1}}+\left (a^{2}+\frac {b^{2}}{2}\right ) \arcsin \left (x \right )\) | \(38\) |
default | \(b^{2} \left (-\frac {x \sqrt {-x^{2}+1}}{2}+\frac {\arcsin \left (x \right )}{2}\right )-2 a b \sqrt {-x^{2}+1}+a^{2} \arcsin \left (x \right )\) | \(42\) |
trager | \(-\frac {b \left (b x +4 a \right ) \sqrt {-x^{2}+1}}{2}+\frac {\left (2 a^{2}+b^{2}\right ) \RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (\RootOf \left (\textit {\_Z}^{2}+1\right ) \sqrt {-x^{2}+1}+x \right )}{2}\) | \(57\) |
meijerg | \(\frac {i b^{2} \left (i \sqrt {\pi }\, x \sqrt {-x^{2}+1}-i \sqrt {\pi }\, \arcsin \left (x \right )\right )}{2 \sqrt {\pi }}-\frac {a b \left (-2 \sqrt {\pi }+2 \sqrt {\pi }\, \sqrt {-x^{2}+1}\right )}{\sqrt {\pi }}+a^{2} \arcsin \left (x \right )\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 42, normalized size = 0.78 \begin {gather*} -\frac {1}{2} \, \sqrt {-x^{2} + 1} b^{2} x + a^{2} \arcsin \left (x\right ) + \frac {1}{2} \, b^{2} \arcsin \left (x\right ) - 2 \, \sqrt {-x^{2} + 1} a b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.78, size = 49, normalized size = 0.91 \begin {gather*} -{\left (2 \, a^{2} + b^{2}\right )} \arctan \left (\frac {\sqrt {-x^{2} + 1} - 1}{x}\right ) - \frac {1}{2} \, {\left (b^{2} x + 4 \, a b\right )} \sqrt {-x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.08, size = 42, normalized size = 0.78 \begin {gather*} a^{2} \operatorname {asin}{\left (x \right )} - 2 a b \sqrt {1 - x^{2}} - \frac {b^{2} x \sqrt {1 - x^{2}}}{2} + \frac {b^{2} \operatorname {asin}{\left (x \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.91, size = 35, normalized size = 0.65 \begin {gather*} \frac {1}{2} \, {\left (2 \, a^{2} + b^{2}\right )} \arcsin \left (x\right ) - \frac {1}{2} \, {\left (b^{2} x + 4 \, a b\right )} \sqrt {-x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 35, normalized size = 0.65 \begin {gather*} \mathrm {asin}\left (x\right )\,\left (a^2+\frac {b^2}{2}\right )-\left (\frac {x\,b^2}{2}+2\,a\,b\right )\,\sqrt {1-x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________